#include <ximera/gui/cegui/spinner.hpp>

namespace ximera { namespace gui { namespace cegui
{
    Int32 Spinner::value() const
    {
        return Int32(ceguiSpinner()->getCurrentValue());
    }

    void Spinner::value(Int32 val)
    {
        ceguiSpinner()->setCurrentValue(float(val));
    }

    Int32 Spinner::stepSize() const
    {
        return Int32(ceguiSpinner()->getStepSize());
    }

    void Spinner::stepSize(Int32 value)
    {
        ceguiSpinner()->setStepSize(float(value));
    }

    Int32 Spinner::minValue() const
    {
        return Int32(ceguiSpinner()->getMinimumValue());
    }

    void Spinner::minValue(Int32 value)
    {
        ceguiSpinner()->setMinimumValue(float(value));
    }

    Int32 Spinner::maxValue() const
    {
        return Int32(ceguiSpinner()->getMaximumValue());
    }

    void Spinner::maxValue(Int32 value)
    {
        ceguiSpinner()->setMaximumValue(float(value));
    }
}}}
